package com.pcg.posgasstation.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.pcg.posgasstation.R;
import com.pcg.posgasstation.model.network.entity.HistoryOrderItemEntity;

import java.util.List;

public class OrderHistoryAdapter extends BaseQuickAdapter<HistoryOrderItemEntity, BaseViewHolder> {

    public OrderHistoryAdapter(int layoutResId, @Nullable List<HistoryOrderItemEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HistoryOrderItemEntity item) {
        helper.setText(R.id.tvOrderItemCreateTime, item.getUser_name());
        helper.setText(R.id.tvOrderItemCardNum, item.getMembers_card());
        helper.setText(R.id.tvOrderItemCreateTime, item.getCreate_time());
    }

}
